<?php

// 拍卖商品

namespace app\shop\model;

use think\Model;

class AuctionGoods extends Model
{

    public function Record()
    {
        return $this->hasMany('AuctionRecord','goods_id','id')->field('goods_id,count(id)');
    }



    public function Auction()
    {
        return $this->belongsTo('Auction','auction_id','id');
    }

}